From 851e6c61ff088b36d020f239478390d42f005576 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 11 Apr 2006 17:27:58 +0000 Subject: [PATCH] Improve read examples. --- gpsbabel/format_skeleton.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gpsbabel/format_skeleton.c b/gpsbabel/format_skeleton.c index 64485cb19..6d462c94b 100644 --- a/gpsbabel/format_skeleton.c +++ b/gpsbabel/format_skeleton.c @@ -74,6 +74,25 @@ format_skeleton_read(void) { // your special code to extract waypoint, route and track // information from file "fin" +// For waypoints: +// while (have waypoints) { +// waypoint = waypt_new() +// populate waypoint +// waypt_add(waypoint); +// } +// +// For routes: +// +// route = route_head_alloc(); +// populate struct route_hdr +// while (have more routepoints) { +// waypoint = waypt_new() +// populate waypoint +// route_add_head(route, waypoint) +// } +// +// Tracks are just like routes, except the word "track" replaces "routes". +// } static void -- 2.30.2